/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link message_participants}.
 * </p>
 *
 * @author Cedric Nana
 * @see message_participants
 * @generated
 */
public class message_participantsWrapper implements message_participants,
	ModelWrapper<message_participants> {
	public message_participantsWrapper(
		message_participants message_participants) {
		_message_participants = message_participants;
	}

	@Override
	public Class<?> getModelClass() {
		return message_participants.class;
	}

	@Override
	public String getModelClassName() {
		return message_participants.class.getName();
	}

	@Override
	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("ID", getID());
		attributes.put("Participant_Id", getParticipant_Id());
		attributes.put("Networkaccesspoint_Id", getNetworkaccesspoint_Id());

		return attributes;
	}

	@Override
	public void setModelAttributes(Map<String, Object> attributes) {
		Long ID = (Long)attributes.get("ID");

		if (ID != null) {
			setID(ID);
		}

		Long Participant_Id = (Long)attributes.get("Participant_Id");

		if (Participant_Id != null) {
			setParticipant_Id(Participant_Id);
		}

		Long Networkaccesspoint_Id = (Long)attributes.get(
				"Networkaccesspoint_Id");

		if (Networkaccesspoint_Id != null) {
			setNetworkaccesspoint_Id(Networkaccesspoint_Id);
		}
	}

	/**
	* Returns the primary key of this message_participants.
	*
	* @return the primary key of this message_participants
	*/
	@Override
	public long getPrimaryKey() {
		return _message_participants.getPrimaryKey();
	}

	/**
	* Sets the primary key of this message_participants.
	*
	* @param primaryKey the primary key of this message_participants
	*/
	@Override
	public void setPrimaryKey(long primaryKey) {
		_message_participants.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the i d of this message_participants.
	*
	* @return the i d of this message_participants
	*/
	@Override
	public long getID() {
		return _message_participants.getID();
	}

	/**
	* Sets the i d of this message_participants.
	*
	* @param ID the i d of this message_participants
	*/
	@Override
	public void setID(long ID) {
		_message_participants.setID(ID);
	}

	/**
	* Returns the participant_ ID of this message_participants.
	*
	* @return the participant_ ID of this message_participants
	*/
	@Override
	public long getParticipant_Id() {
		return _message_participants.getParticipant_Id();
	}

	/**
	* Sets the participant_ ID of this message_participants.
	*
	* @param Participant_Id the participant_ ID of this message_participants
	*/
	@Override
	public void setParticipant_Id(long Participant_Id) {
		_message_participants.setParticipant_Id(Participant_Id);
	}

	/**
	* Returns the networkaccesspoint_ ID of this message_participants.
	*
	* @return the networkaccesspoint_ ID of this message_participants
	*/
	@Override
	public long getNetworkaccesspoint_Id() {
		return _message_participants.getNetworkaccesspoint_Id();
	}

	/**
	* Sets the networkaccesspoint_ ID of this message_participants.
	*
	* @param Networkaccesspoint_Id the networkaccesspoint_ ID of this message_participants
	*/
	@Override
	public void setNetworkaccesspoint_Id(long Networkaccesspoint_Id) {
		_message_participants.setNetworkaccesspoint_Id(Networkaccesspoint_Id);
	}

	@Override
	public boolean isNew() {
		return _message_participants.isNew();
	}

	@Override
	public void setNew(boolean n) {
		_message_participants.setNew(n);
	}

	@Override
	public boolean isCachedModel() {
		return _message_participants.isCachedModel();
	}

	@Override
	public void setCachedModel(boolean cachedModel) {
		_message_participants.setCachedModel(cachedModel);
	}

	@Override
	public boolean isEscapedModel() {
		return _message_participants.isEscapedModel();
	}

	@Override
	public java.io.Serializable getPrimaryKeyObj() {
		return _message_participants.getPrimaryKeyObj();
	}

	@Override
	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_message_participants.setPrimaryKeyObj(primaryKeyObj);
	}

	@Override
	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _message_participants.getExpandoBridge();
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.model.BaseModel<?> baseModel) {
		_message_participants.setExpandoBridgeAttributes(baseModel);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
		_message_participants.setExpandoBridgeAttributes(expandoBridge);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_message_participants.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new message_participantsWrapper((message_participants)_message_participants.clone());
	}

	@Override
	public int compareTo(
		de.hsmannheim.pepa.patientenportal.apanwep.model.message_participants message_participants) {
		return _message_participants.compareTo(message_participants);
	}

	@Override
	public int hashCode() {
		return _message_participants.hashCode();
	}

	@Override
	public com.liferay.portal.model.CacheModel<de.hsmannheim.pepa.patientenportal.apanwep.model.message_participants> toCacheModel() {
		return _message_participants.toCacheModel();
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.message_participants toEscapedModel() {
		return new message_participantsWrapper(_message_participants.toEscapedModel());
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.message_participants toUnescapedModel() {
		return new message_participantsWrapper(_message_participants.toUnescapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _message_participants.toString();
	}

	@Override
	public java.lang.String toXmlString() {
		return _message_participants.toXmlString();
	}

	@Override
	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_message_participants.persist();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (!(obj instanceof message_participantsWrapper)) {
			return false;
		}

		message_participantsWrapper message_participantsWrapper = (message_participantsWrapper)obj;

		if (Validator.equals(_message_participants,
					message_participantsWrapper._message_participants)) {
			return true;
		}

		return false;
	}

	/**
	 * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
	 */
	public message_participants getWrappedmessage_participants() {
		return _message_participants;
	}

	@Override
	public message_participants getWrappedModel() {
		return _message_participants;
	}

	@Override
	public void resetOriginalValues() {
		_message_participants.resetOriginalValues();
	}

	private message_participants _message_participants;
}